#pragma once
#include "../connection/connection.h"

namespace umtl
{
	//////////////////////////////////////////////////////////////////////////
	//

	class udp_client
	{
	public:
		udp_client( std::string const & host, std::string const & port
			, udp_connection::read_handler_t read_handler, udp_connection::close_handler_t close_handler );

		void send( char const * data, size_t len );

	private:
		void start_receive();

		udp_connection::pointer connection_;
	};

	//////////////////////////////////////////////////////////////////////////
}